﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using RoadTeam.Enums;
using System.Reflection;

namespace RoadTeam.SysInterface
{
    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.IMeterDegree _iMeterDegree = null;

        public static IMeterDegree CreateMeterDegree()
        {
            if (_iMeterDegree == null)
            {
                string className = GlobalConfig.RtSystemPath + ".FM.FmMeterDegree_Sys";
                _iMeterDegree = (IMeterDegree)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iMeterDegree;
        }
    }

    public interface IMeterDegree
    {
        DataTable GetMeterDegree(String OrganID, int PageSize, int CurrentPage, int AllCount);
        int GetMeterDegreeCount(String OrganID);
        bool UpdateMeterDegree(DataTable dt);
        DataTable GetMeterDegree(String StrDegreeID);
    }
}
